<?php
/**
 * Created by: zhaoyi (834574377@qq.com)
 * Time: 2023/1/4 10:29
 * Blog: https://www.yuque.com/huangzhenlian
 */

declare(strict_types=1);

namespace App\Application\Admin\Controller\RequestParam;

use App\Annotation\RequestParam;
use App\Controller\RequestParam\BaseRequestParam;

#[RequestParam]
class PackageSubmitRequestParam extends BaseRequestParam
{
    protected array $rules = [
        'name' => 'required',
        'price' => 'required',
        'time' => 'required',
        'status' => 'required',
        'type' => 'required',

    ];
    protected array $message = [
        'name.required' => '请输入套餐名称',
        'price.required' => '请输入套餐价格',
        'time.required' => '请输入套餐时长',
        'status.required' => '请选择套餐状态',
        'type.required' => '请选择套餐类型',
    ];
    private int $package_id = 0;
    private string $name = '';
    private float $price = 0;
    private int $time = 0;
    private int $status = 0;
    private int $type = 0;
    /**
     * @return int
     */
    public function getPackageId(): int
    {
        return $this->package_id;
    }

    /**
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }
    /**
     * @return float
     */
    public function getPrice(): float
    {
        return $this->price;
    }

    /**
     * @return int
     */
    public function getTime(): int
    {
        return $this->time;
    }
    /**
     * @return int
     */
    public function getStatus(): int
    {
        return $this->status;
    }
    /**
     * @return int
     */
    public function getType(): int
    {
        return $this->type;
    }

}